//$primaryColor: #155bd4;
$primaryColor: #27b32e;
$colorTextBase: #323233;

// 系统设置 - 平台帐号 - 数据授权
// 自定义transfer样式
.ant-transfer.customer-transfer {
  .ant-transfer-list {
    width: 48%;
  }
  .ant-transfer-list-header-selected {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:space-between;
  }
  .ant-transfer-list-body-customize-wrapper {
    padding: 0 12px;
  }
}


// modal悬浮关闭按钮
@mixin closeable {
  background: $primaryColor;
  position: absolute;
  width: 38px;
  height: auto;
  padding: 30px 6px;
  line-height: 30px;
  text-align: center;
  left: -38px;
  right: 0;
  top: 20%;
  color: #fff;
  border-radius: 2px 0 0 2px;
  cursor: pointer;
  border: 2px solid #fff;
  border-right: none;
  font-weight: 600;
  font-size: 14px;
  //&:after {
  //  content: '>';
  //  font-size: 16px;
  //}
}


// 全局按钮
.base-btn {
  outline: none;
  position: relative;
  display: inline-block;
  font-weight: 400;
  white-space: nowrap;
  text-align: center;
  background-image: none;
  border: 1px solid #d9d9d9;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  user-select: none;
  touch-action: manipulation;
  line-height: 1.5;
  color: rgba(50, 50, 51, 0.88);
  background-color: #ffffff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
  font-size: 14px;
  height: 32px;
  padding: 4px 15px;
  border-radius: 2px;
  &.primary {
    color: #fff;
    background-color: $primaryColor;
    box-shadow: 0 2px 0 rgba(5, 135, 255, 0.1);
    border: 1px solid transparent;
  }
}

// 全局check-group样式
.base-check-group,
.base-radio-group {
  .ant-radio-wrapper,
  .ant-checkbox-wrapper {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    border: 1px solid $primaryColor;
    position: relative;
    text-align: center;
    width: 100%;
    border-radius: 4px;
    padding: 15px 0!important;
    //font-size: 16px;
    &.ant-radio-wrapper-checked,
    &.ant-checkbox-wrapper-checked {
      color: $primaryColor;
      &:after {
        content: "";
        display: inline-block;
        position: absolute;
        width: 30px;
        height: 30px;
        bottom: -1px;
        right: -1px;
        background: url('@/assets/checked.png') no-repeat;
        background-size: 30px auto;
      }
    }
    .ant-radio,
    .ant-checkbox {
      display: none;
    }
  }
}

// 全局字体样式
.base-text {
  color: $colorTextBase;
  &.primary {
    color: $primaryColor;
  }
  &.red {
    color: #cf1322;
  }
  &.pink {
    color: #c41d7f;
  }
  &.orange {
    color: #d46b08;
  }
  &.green {
    color: #389e0d;
  }
  &.cyan {
    color: #08979c;
  }
}

// 自定义上传组件的样式
.s-uploader{
  .ant-upload {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
  }
  .ant-upload-list{
    width: 100% !important;
    height: 100% !important;
    .ant-upload-list-item-container {
      width: 100% !important;
      height: 100% !important;
    }
  }
}

// 登录页的手机国家号下拉选择样式
.ant-select-dropdown.login-form-drop {
  width: 320px !important;
}

// modal公共分隔线样式
.ui-block-container {
  .block-header-wrap {
    background: rgb(247, 248, 250);
    .title {
      display: inline-block;
      border-left: 4px solid #155bd4;
      padding: 0 10px;
      margin: 8px 0;
      font-size: 14px;
      color: #323233;
    }
  }
  .block-content-wrap {
    position: relative;
    padding: 19px 12px 0;
  }
}
// modal页的公用头部样式
.modal-header {
  font-size: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #DCDEE0;
  margin-bottom: 20px;
  color: rgba(0,0,0,.85);
}
// modal页的固定底部区域
.modal-fixed-bottom {
  padding-bottom: 70px;
  .footer {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 20px;
    border-top: 1px solid rgba(5, 5, 5, 0.06);
    background: #ffffff;
    z-index: 2;
  }
}

// 优先级的Tag
.priority-tag {
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  color: #ffffff;
  text-align: center;
  &.high {
    background: #ff5630;
    //background: #cf1322;
  }
  &.medium {
    background: #ffab00;
    //background: #d46b08;
  }
  &.low {
    background: #36b37e;
    //background: #389e0d;
  }
  &.none {
    background: #dfe1e6;
  }
}
